import request from '@/utils/request'

// 查询养护管理列表
export function listRecordlist(query) {
  return request({
    url: '/system/recordlist/list',
    method: 'get',
    params: query
  })
}

// 查询养护管理详细
export function getRecordlist(recordId) {
  return request({
    url: '/system/recordlist/' + recordId,
    method: 'get'
  })
}

// 新增养护管理
export function addRecordlist(data) {
  return request({
    url: '/system/recordlist',
    method: 'post',
    data: data
  })
}

// 修改养护管理
export function updateRecordlist(data) {
  return request({
    url: '/system/recordlist',
    method: 'put',
    data: data
  })
}

// 删除养护管理
export function delRecordlist(recordId) {
  return request({
    url: '/system/recordlist/' + recordId,
    method: 'delete'
  })
}
